SHELL=/bin/sh

LIBNAME=libicecode-test
LIBFILENAME=$(LIBNAME).a

CXX=g++
CXXFLAGS=--std=c++0x $(shell pkg-config --cflags $(LIBS))

.PHONY: clean

all: $(BUILDDIR)/$(LIBFILENAME)

$(BUILDDIR)/$(LIBFILENAME): $(BUILDDIR)/XMLOutput.o
	$(AR) rcs $@ $<

$(BUILDDIR)/XMLOutput.o: XMLOutput.cpp
	$(CXX) -c XMLOutput.cpp -o $(BUILDDIR)/XMLOutput.o $(CXXFLAGS)

clean:
	$(RM) $(BUILDDIR)/{*.a,*.o}
